
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
		<ul class="searchContent">			
			<li><label>
					<@label key='sequenceCode.C,colon'>序列编号：</@label></label>
					<input type="text" name="sequenceCode" value="${condition.sequenceCode!''}"/></li>
			<li>
				<label><@label key='sequenceText.C,colon'>序列描述：</@label></label>
				<input type="text" name="sequenceText" value="${condition.sequenceText!''}"/></li>
			<li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit" name="btnQuery"><@label key="query.B">查询</@label></button>
                    </div>
                </div>
           	</li>
		</ul>	
    </div>
</div>
</form>

<div class="pageContent">
    <div class="panelBar">
    	<ul class="toolBar">
    	 	<@buttonRight menuCode="TOADDSEQUENCE" labelKey="add.B" defalutName="新增">
            	<li><a class="add" target="dialog" mask="true" width="350" height="200" 
            		href="${rc.getContextPath()}/manage/sequence/toAddSequence?navTabId=${navTabId!''}"><span><@label key="add.B">新增</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="TOEDITSEQUENCE" labelKey="edit.B" defalutName="编辑">
            <li>
            	<a class="edit" target="dialog" mask="true" width="400" height="260" rel="editdefect" 
            	href="${rc.getContextPath()}/manage/sequence/toEditSequence?sequenceCode={sequence_Code}&navTabId=${navTabId!''}">
            	<span><@label key="edit.B">编辑</@label></span></a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="VIEWSEQUENCE" labelKey="view.B" defalutName="详情">
            <li>
            	<a class="icon" target="dialog" mask="true" width="400" height="260" 
            	href="${rc.getContextPath()}/manage/sequence/viewSequence?sequenceCode={sequence_Code}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="DELETESEQUENCEBATCH" labelKey="delete.B" defalutName="删除">
            <li>
            	<a class="delete" target="selectedTodo" posttype="string" rel="ids" href="${rc.getContextPath()}/manage/sequence/deleteSequenceBatch?navTabId=${navTabId!''}" callback="batchjobAjaxDone" title="<@label key='confirmDelsequence.M'>确认要删除选中的序列吗？</@label>"><span><@label key="delete.B">删除</@label></span></a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="134">
        <thead>
            <tr>
            	<th width="10"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="20"><@label key="serialNumber.C">序号</@label></th>                
               	<th width="80" orderField="sequenceCode"><@label key='sequenceCode.C'>序列编号</@label></th>
               	<th width="80" orderField="sequenceText"><@label key='sequenceText.C'>序列描述</@label></th>
               	<th width="80" orderField="nextValue" ><@label key='nextValue.C'>下一个值</@label></th>
               	<th width="80" orderField="createUser" ><@label key='createUser.C'>创建人</@label></th>
               	<th width="120" orderField="createDateTime" <#if (page.orderField?? && page.orderField =="createDateTime")>class="${page.orderDirection!''}"</#if>><@label key='createDateTime.C'>创建时间</@label></th>
               	<th width="80" orderField="modifyUser" ><@label key='modifyUser.C'>修改人</@label></th>
               	<th width="120" orderField="modifyDateTime" <#if (page.orderField?? && page.orderField =="modifyDateTime")>class="${page.orderDirection!''}"</#if>><@label key='modifyDateTime.C'>修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as sequence>
            <tr target="sequence_Code" rel="${sequence.sequenceCode!''}">
            	<td><input name="ids" value="${sequence.sequenceCode!''}" type="checkbox"></td>
                <td>${page.startRow + sequence_index}</td>
           		<td>${sequence.sequenceCode!}</td>
           		<td>${sequence.sequenceText!}</td>
           		<td>${sequence.nextValue!}</td>
           		<td>${sequence.createUser!}</td>
           		<td>${sequence.createDateTime!?string("yyyy-MM-dd  HH:mm:ss")?if_exists}</td>
           		<td>${sequence.modifyUser!}</td>
           		<td>${sequence.modifyDateTime!?string("yyyy-MM-dd  HH:mm:ss")?if_exists}</td>           		
            </tr>
        </#list>
        <#else>
        <tr target="sequence_id">
                <td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="sequence_id">
                <td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>
<script type="text/javascript">
(function($){
	var page = DWZ.context();
})(jQuery);
</script>
